$(function() {
	$.ajax({
		type: "GET",
		url: "user-pic.do",
		dataType: "json",
		data: {photoWriterId:sessionStorage.author},
		success: function(data) {
			console.info(data)
			let mls = $("#imgdiv").clone();
			let mod = $(".vw_recommend_wrap");
//			let mlsfather = mls.parent();
			
			mod.empty();
			$.each(data, function(i, n) {
			console.info(i)
			console.info(n)
			let ml1=mls.clone().appendTo(mod);
			 		ml1.find(".pic-title").text("作品名称:"+n.photoPicTitle).css("font-size","20px");
			 		ml1.find(".pic-great-count").text("收到的赞:"+n.photoPicGreatCount).css("font-size","20px");
			 		ml1.find(".imgsrc").attr("src", n.photoWatermarkPicPath);
			 		ml1.find(".img-a").attr("src", n.photoWatermarkPicPath);
			 		ml1.find(".img-a").attr("href", "pic-details.html?"+"title="+n.photoPicTitle+"&writerId="+n.photoWriterId+"&picClassId="+n.photoPicClassId+"&photoPicCost="+n.photoPicCost+"&picId="+n.photoPicId);
			});
		}
	});
	
})